package com.training.builder;

public class StringBuilderDemo3 {

	public static void main(String[] args) {
		String str = "apple,";
		StringBuilder builder = new StringBuilder(str);
		
		long s1 = System.currentTimeMillis();
		for(int i = 0;i<10000;i++) {
			builder.append("apple,");
		}
		
		long s2 =System.currentTimeMillis();
		System.out.println("builder拼接耗时："+(s2-s1)+"ms");
		
		

	}

}
